export interface MobileLoginState {
    mobile: string;
    captcha: string;
}

export const rules = {
    mobile: [
        {required: true, whitespace: true, message: "手机号不能为空", trigger: "blur"},
        {pattern: /^1[3|4|5|7|8]\\d{9}$/, message: "手机号不正确", trigger: "blur"}
    ],
    captcha: [
        {
            required: true,
            whitespace: true,
            message: "验证码不能为空",
            trigger: "blur"
        },
        {
            len: 4,
            message: "验证码长度为4",
            trigger: "blur"
        }
    ]
}
